package com.hgkj.cloud.base.transactional;

import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.lang.annotation.*;

/**
 * @Author: yangcg    用于回滚 read
 */
@Target({ElementType.METHOD, ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Inherited
@Transactional(
        transactionManager = "transactionManager",
        readOnly = true,
        propagation = Propagation.SUPPORTS
)
public @interface DBReadTransactional {
}
